import request from '@/utils/request'

// 查询采购计划列表
export function listPlan(query) {
    return request({
        url: '/ppm/plan/listPlan',
        method: 'get',
        params: query
    })
}

// 查询采购计划详细
export function getPlan(aid) {
    return request({
        url: '/ppm/plan/' + aid,
        method: 'get'
    })
}

export function selectProcurementPlanByIdForThreeTables(aid) {
    return request({
        url: '/ppm/plan/manyDetail?aid=' + aid,
        method: 'GET'
    })
}

export function selectPpmBudgetByAid(aid) {
    return request({
        url: '/ppm/budget/BudgetByFront?aid=' + aid,
        method: 'post'
    })
}
